<div id="{{ plot_div_id }}" class="plotly-graph-div" style="height:100%; width:100%;"></div>
<script type="text/javascript">
    Plotly.newPlot("{{ plot_div_id }}", {{ plot|tojson|safe }});
</script>